package com.happyhome.services;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.happyhome.dao.UsersDao;
import com.happyhome.datamodel.User;

@Service
public class UsersServiceImpl implements UsersService{
	
	@SuppressWarnings("unused")
	private static final Logger LOGGER = LoggerFactory.getLogger(UsersServiceImpl.class);
	
	@Autowired
    private UsersDao userDao;

	public List<User> getAllUsers(){
		return userDao.getAllUsers();
	}

	@Override
	public User getUserByUserName(String username) {
		return userDao.getUserByUserName(username);
	}

	@Override
	public Long getImageOfManager(Long idHouse) {
		return userDao.getImageOfManager(idHouse);
	}
}
